package cn.iocoder.yudao.module.blog.controller.admin.component.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 置顶案例 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class BlogComponentBaseVO {

    @Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotNull(message = "名字不能为空")
    private String name;

    @Schema(description = "参数名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotNull(message = "参数名字不能为空")
    private String paramName;

    @Schema(description = "参数值", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "参数值不能为空")
    private Long paramValue;

    @Schema(description = "地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotNull(message = "地址不能为空")
    private String url;

    @Schema(description = "封面图片", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotNull(message = "封面图片不能为空")
    private String picUrl;

    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotNull(message = "类型不能为空")
    private String type;
}
